﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>

<table class="table-orderList">
    <thead>
    <td>提现编号</td>
    <td>用户编号</td>
    <td>提币名称</td>
    <td>提币数量</td>
    <td>审核状态</td>
    <td>回调状态</td>
    <td>提现时间</td>
    <td>实际到账金额</td>
    <td>审核人名称</td>
    <td>操作</td>
    </thead>
    <c:forEach var="item" items="${data}" varStatus="list">
        <tr>
            <td>${item.withdraw_id }</td>
            <td>${item.user_id }</td>
            <td>${item.token_name }</td>
            <td>${item.withdraw_account }</td>
            <td>
                <c:choose>
                    <c:when test="${item.audit_status==0 }">
                        待审核
                    </c:when>
                    <c:when test="${item.audit_status==1 }">
                        审核通过
                    </c:when>
                    <c:when test="${item.audit_status==2 }">
                        审核拒绝
                    </c:when>
                </c:choose>
            </td>
            <td>
                <c:choose>
                    <c:when test="${item.pay_status==0 }">
                        提币中
                    </c:when>
                    <c:when test="${item.pay_status==1 }">
                        提币成功
                    </c:when>
                    <c:when test="${item.pay_status==2 }">
                        提币失败
                    </c:when>
                </c:choose>
            </td>
            <td><fmt:formatDate value="${item.create_time }" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
            <td><fmt:formatDate value="${item.callback_time }" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
            <td>${item.admin_name }</td>
            <td>
                <a class="text-primary mr-10" data-tab-title="审核" target="_blank"
                   href="${basePath}/t_user_withdraw/add?withdraw_id=${item.withdraw_id}">审核</a>
            </td>
        </tr>
    </c:forEach>

</table>

<c:choose>
    <c:when test="${!empty data}">
        ${page}
    </c:when>
    <c:otherwise>
        <div class="relative" style="height: 200px">
            <span>没有符合条件的数据，请尝试其他搜索条件</span>
        </div>
    </c:otherwise>
</c:choose>

